<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login</title>
    <style>
        body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 0;
}

.navbar {
    background-color: #333;
    padding: 15px;
    text-align: right;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.navbar .login-btn {
    background-color: #4CAF50;
    padding: 10px 20px;
    border-radius: 5px;
}

.navbar .logout-btn {
    background-color: #f44336;
    padding: 10px 20px;
    border-radius: 5px;
}

.content {
    padding: 20px;
    text-align: center;
}

form {
    margin-top: 20px;
    text-align: center; /* 中心对齐表单 */
}

input[type="text"], input[type="password"], input[type="number"] {
    width: 200px;
    padding: 10px;
    margin: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block; /* 设置按钮为行内块元素 */
    text-align: center;
}

button:hover {
    background-color: #45a049;
}

.login-container {
    width: 300px;
    margin: 100px auto;
    padding: 30px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
}
    </style>
</head>
<body>
    <div class="login-container">
        <form action="/login" method="POST">
            <h2>Login</h2>
            <label for="username">Username:</label>
            <input type="text" id="username" name="username" required>
            <label for="password">Password:</label>
            <input type="password" id="password" name="password" required>
            <button type="submit">Login</button>
        </form>
    </div>
</body>
</html>

